package com.example.demo.Service;


import com.example.demo.entity.PostTag;
import com.example.demo.repository.PostTagRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PostTagService {
    @Autowired
    private PostTagRepository postTagRepository;



    //获取所有文章
    public List<PostTag> findAll() {
        return postTagRepository.findAll();
    }


}
